paned: Don't ignore the type attribute
authorMatthias Clasen <mclasen@redhat.com>
Tue, 12 May 2020 20:26:28 +0000 (16:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 May 2020 20:27:25 +0000 (16:27 -0400)
We were meaning to only handle <child> here for
compatibility, not <child type="somethingelse">.

gtk/gtkpaned.c

index 29ebdf350b3a3c3c83685556608ef870261fdab6..a789fb97d1fedcf4769a2628f5f21066f84ed654 100644 (file)
@@ -772,7 +772,7 @@ gtk_paned_buildable_add_child (GtkBuildable *buildable,
       gtk_paned_set_resize_end_child (self, TRUE);
       gtk_paned_set_shrink_end_child (self, TRUE);
     }
-  else if (GTK_IS_WIDGET (child))
+  else if (type == NULL && GTK_IS_WIDGET (child))
     {
       if (self->start_child == NULL)
         {